package edu.hunan.cxb18.orm.mapper;

import edu.hunan.cxb18.orm.pojo.Course;
import edu.hunan.cxb18.orm.pojo.Score;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenheng
 * @create 2020-03-04 16:12
 */
public interface CourseMapper {
    /**
     * 向couse中插入数据
     * @param course
     */
    public void insertCourse(Course course);

    /**
     * 根据Id查询course
     * @param id
     * @return
     */
    public Course queryByIdCourse(@Param("id") Integer id);

    public List<Score> qeruyByIdScore(@Param("id") Integer id);

    public List<Score> queryByCoursenameStudent(String string);
}
